<%@ Page 
    Language="C#" 
    MasterPageFile="~/ITCG.master" 
    AutoEventWireup="true" 
    CodeFile="COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx.cs" 
    Inherits="COM_COM_DEVOLUCION_PRESTAMO_EGR_DET" 
    meta:resourcekey="TIT_COM_DEVOLUCION_PRESTAMO_EGR_DETRecursoKCG"
    Theme="EstiloKCG"    
    StylesheetTheme="EstiloKCG"%>
    
<%@ Register 
    Src="../WebUserControls/wucMensajeEliminar.ascx" 
    TagName="wucMensajeEliminar"
    TagPrefix="uc1" %>
    
<%@ Register 
    Src="../WebUserControls/wucMensajeActualizar.ascx" 
    TagName="wucMensajeActualizar"
    TagPrefix="uc2" %>
    
 <%@ Register 
    Assembly="AjaxControlToolkit" 
    Namespace="AjaxControlToolkit" 
    TagPrefix="AjaxControlToolkit" %>

<%@ Register tagprefix="koala" 
    assembly="KoalaWebControls" 
    namespace="Koala.KoalaWebControls" %>
<asp:Content 
    ID="Content1" 
    ContentPlaceHolderID="ContentPlaceHolder1" 
    Runat="Server">
    <asp:UpdatePanel 
        ID="UpdatePanel1" 
        runat="server"
        UpdateMode="Conditional">
        <ContentTemplate>
            <script type="text/javascript">     
                Sys.Application.add_load(page_load);
                Sys.Application.add_unload(page_unload);
                
                var Com_Articulo_Nombre = null;
                var Com_Prestamo_Egr_Codigo = null;
                var Bod_Unidad_Nombre = null;
                
                function page_load(sender, e)
                {
                    Com_Articulo_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Nombre");
                    Com_Prestamo_Egr_Det_Codigo = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Det_Codigo");
                    Bod_Unidad_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Nombre");
                    $addHandler(Com_Articulo_Nombre, "focus", asigna_contextKey1);
                    $addHandler(Com_Prestamo_Egr_Det_Codigo, "focus", asigna_contextKey2);
                    $addHandler(Bod_Unidad_Nombre, "focus", asigna_contextKey3);
                }
                
                function page_unload(sender, e)
                {
                    $removeHandler(Com_Articulo_Nombre, "focus", asigna_contextKey1);                    
                    $removeHandler(Com_Prestamo_Egr_Det_Codigo, "focus", asigna_contextKey2);                    
                    $removeHandler(Bod_Unidad_Nombre, "focus", asigna_contextKey3);                    
                }      
                
                function asigna_contextKey1(sender, e)
                {                                        
                    var behavior = $find('AutoCompleteEx3');
                    var Com_Prestamo_Egr_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Id");
                    behavior.set_contextKey(Com_Prestamo_Egr_Id.value);
                }
                
                function asigna_contextKey2(sender, e)
                {                                        
                    var behavior = $find('AutoCompleteEx4');
                    var Com_Prestamo_Egr_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Id");
                    behavior.set_contextKey(Com_Prestamo_Egr_Id.value);
                }
                
                function asigna_contextKey3(sender, e)
                {                                        
                    var behavior = $find('AutoCompleteEx5');
                    var Com_Articulo_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Id");
                    behavior.set_contextKey(Com_Articulo_Id.value);
                }
                              
                function ItemSelectedCodigo( source, eventArgs ) 
                {
                    var valor = eventArgs.get_value();
                    var temp = new Array();
                    temp = valor.split('||');  
                    
                    var Com_Prestamo_Egr_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Id");
                    Com_Prestamo_Egr_Id.innerText = temp[0];
                    
                    var Com_Prestamo_Egr_Tipo_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Tipo_Nombre");
                    Com_Prestamo_Egr_Tipo_Nombre.innerText = temp[1];  
                    
                    var Com_Prestamo_Egr_Numero = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Numero");
                    Com_Prestamo_Egr_Numero.innerText = temp[2];
                } 
               
                function ItemSelectedNumero( source, eventArgs ) 
                {
                    var valor = eventArgs.get_value();
                    var temp = new Array();
                    temp = valor.split('||');                       

                    var Com_Prestamo_Egr_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Id");
                    Com_Prestamo_Egr_Id.innerText = temp[0];
                    
                    var Com_Prestamo_Egr_Tipo_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Tipo_Nombre");
                    Com_Prestamo_Egr_Tipo_Nombre.innerText = temp[1];  
                    
                    var Com_Prestamo_Egr_Codigo = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Codigo");
                    Com_Prestamo_Egr_Codigo.innerText = temp[2];  
                }     
               
                function ItemSelectedArticulo( source, eventArgs ) 
                {
                    var valor = eventArgs.get_value();
                    var temp = new Array();
                    temp = valor.split('||');  

                    var Com_Prestamo_Egr_Det_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Det_Id");
                    Com_Prestamo_Egr_Det_Id.innerText = temp[0];
                    
                    var Com_Prestamo_Egr_Det_Codigo = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Det_Codigo");
                    Com_Prestamo_Egr_Det_Codigo.innerText = temp[1];  
                    
                    var Com_Articulo_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Id");
                    Com_Articulo_Id.innerText = temp[2];
                    
                    var Com_Articulo_Codigo = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Codigo");
                    Com_Articulo_Codigo.innerText = temp[3];  
                    
                    var Com_Prestamo_Egr_Det_Cantidad = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Det_Cantidad");
                    Com_Prestamo_Egr_Det_Cantidad.innerText = temp[4];
                    
                    var Bod_Unidad_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Id");
                    Bod_Unidad_Id.innerText = temp[5];
                    
                    var Bod_Unidad_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Nombre");
                    Bod_Unidad_Nombre.innerText = temp[6];
                }      
               
                function ItemSelectedCodigoDet( source, eventArgs ) 
                {
                    var valor = eventArgs.get_value();
                    var temp = new Array();
                    temp = valor.split('||');                       

                    var Com_Prestamo_Egr_Det_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Det_Id");
                    Com_Prestamo_Egr_Det_Id.innerText = temp[0];
                    
                    var Com_Articulo_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Id");
                    Com_Articulo_Id.innerText = temp[1];  
                    
                    var Com_Articulo_Codigo = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Codigo");
                    Com_Articulo_Codigo.innerText = temp[2]; 
                    
                    var Com_Articulo_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Articulo_Nombre");
                    Com_Articulo_Nombre.innerText = temp[3];  
                    
                    var Com_Prestamo_Egr_Det_Cantidad = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Com_Prestamo_Egr_Det_Cantidad");
                    Com_Prestamo_Egr_Det_Cantidad.innerText = temp[4];
                    
                    var Bod_Unidad_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Id");
                    Bod_Unidad_Id.innerText = temp[5];
                    
                    var Bod_Unidad_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Nombre");
                    Bod_Unidad_Nombre.innerText = temp[6];                          

                }                 
                function ItemSelectedUnidad( source, eventArgs ) 
                {
                    var valor = eventArgs.get_value();
                    var temp = new Array();
                    temp = valor.split('||');                       

                    var Bod_Unidad_Id = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Id");
                    Bod_Unidad_Id.innerText = temp[0];  
                    
                    var Bod_Unidad_Nombre = $get("ctl00_ContentPlaceHolder1_fvcom_devolucion_prestamo_egr_det_Bod_Unidad_Nombre");
                    Bod_Unidad_Nombre.innerText = temp[1];                                               
                }                                              
            </script>
            <asp:FormView 
                ID="fvcom_devolucion_prestamo_egr_det" 
                runat="server" 
                DataSourceID="odsfvcom_devolucion_prestamo_egr_det"
                DefaultMode="Insert">
                <EditItemTemplate> 
                    <asp:Panel
                        id="Panel1"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_DEVOLUCION_PRESTAMORecursoKCG">
                        <table>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lblbodegas"
                                        runat="server"                                        
                                        Text='<%# GetLocalResourceObject("Bod_Bodega_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:label> 
                                </td>
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="Bod_Bodega_Codigo" 
                                        runat="server"
                                        ReadOnly="true"
                                        TabIndex="-1"  
                                        ToolTip='<%# GetLocalResourceObject("Bod_Bodega_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Bodega_Codigo") %>'>
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Bod_Bodega_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="337px"
                                        ToolTip='<%# GetLocalResourceObject("Bod_Bodega_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Bodega_Nombre") %>'>
                                    </asp:TextBox>    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lblentidad"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Par_Razon_Social_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:label>
                                </td>                                 
                                <td>
                                    <asp:TextBox 
                                        ID="Par_Razon_Social_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="495px"
                                        ToolTip='<%# GetLocalResourceObject("Par_Razon_Social_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Par_Razon_Social_Nombre") %>'>
                                    </asp:TextBox>
                                </td>    
                            </tr>
                        </table>
                    </asp:Panel> 
                    <asp:Panel
                        id="Panel2"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_PRESTAMORecursoKCG">
                        <table>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lbldonacioncod"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Prestamo_Egr_CodigoRecursoKCG.Text").ToString() %>'>
                                    </asp:label>
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Codigo" 
                                        runat="server" 
                                        CssClass="TEXTO_EDICION_KCG"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Codigo") %>'>
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator2"
                                        runat="server" 
                                        ControlToValidate="Com_Prestamo_Egr_Codigo"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender2"
                                        TargetControlID="RequiredFieldValidator2"/>
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx1"
                                        ID="AutoCompleteExtender1" 
                                        TargetControlID="Com_Prestamo_Egr_Codigo"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetCodigo"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedCodigo">                                        
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx1');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx1')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx1')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Tipo_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Tipo_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Tipo_Nombre") %>'>
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Numero" 
                                        runat="server" 
                                        CssClass="TEXTO_EDICION_KCG"
                                        Width="196px"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_NumeroRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Numero") %>'>
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator3"
                                        runat="server" 
                                        ControlToValidate="Com_Prestamo_Egr_Numero"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender3"
                                        TargetControlID="RequiredFieldValidator3"/>
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx2"
                                        ID="AutoCompleteExtender2" 
                                        TargetControlID="Com_Prestamo_Egr_Numero"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetNumero"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedNumero">                                                                                 
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx2');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx2')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx2')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>    
                                </td>
                            </tr>                            
                        </table>
                    </asp:Panel>
                    <asp:Panel
                        id="Panel3"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DETRecursoKCG">
                        <table>
                            <tr>                                
                                <td>
                                    <asp:label
                                        id="lblbodordencod"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Bod_Orden_CodigoRecursoKCG.Text").ToString() %>'>
                                    </asp:label>    
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Bod_Orden_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Bod_Orden_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Orden_Codigo") %>'>
                                    </asp:TextBox>    
                                </td>
                                <td>
                                    <asp:label
                                        id="Label1"
                                        runat="server"
                                        ForeColor="red"
                                        Text='<%# Bind("Estado_Nombre") %>'>
                                    </asp:label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lblcomarticulo" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Articulo_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>
                                </td>
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="Com_Articulo_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Articulo_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Articulo_Codigo") %>'>
                                    </asp:TextBox>                                                                                                                              
                                    <asp:TextBox 
                                        ID="Com_Articulo_Nombre" 
                                        runat="server" 
                                        Width="278px"
                                        CssClass="TEXTO_EDICION_KCG"
                                        ToolTip='<%# GetLocalResourceObject("Com_Articulo_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Articulo_Nombre") %>'>
                                    </asp:TextBox>                                    
                                    <asp:RequiredFieldValidator 
                                        ID="rqvCom_Articulo_Nombre"
                                        runat="server" 
                                        ControlToValidate="Com_Articulo_Nombre"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="caValidator"
                                        TargetControlID="rqvCom_Articulo_Nombre"/> 
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx3"
                                        ID="AutoCompleteExtender3" 
                                        TargetControlID="Com_Articulo_Nombre"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetArticuloNombre"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedArticulo"
                                        UseContextKey="true"
                                        ContextKey="0">                                                                                 
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx3');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx3')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx3')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>   
                                                                                                                  
                                </td>                                
                            </tr>
                            <tr>
                                <td>
                                </td>                                                                                                                                                                                                                          
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="TextBox1" 
                                        BorderColor="White"
                                        BorderStyle="None"
                                        ReadOnly="true" 
                                        width="153px" 
                                        TabIndex="-1"
                                        runat="server">
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Det_Codigo" 
                                        runat="server"
                                        Width="278px"
                                        CssClass="TEXTO_EDICION_KCG" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Det_Codigo") %>'>
                                    </asp:TextBox> 
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator1"
                                        runat="server" 
                                        ControlToValidate="Com_Prestamo_Egr_Det_Codigo"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender1"
                                        TargetControlID="RequiredFieldValidator1"/> 
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx4"
                                        ID="AutoCompleteExtender4" 
                                        TargetControlID="Com_Prestamo_Egr_Det_Codigo"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetCodigoDet"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedCodigoDet"
                                        UseContextKey="true"
                                        ContextKey="0">                                                                                 
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx4');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx4')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx4')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lblcantidad" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CantidadRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>                                   
                                </td>
                                <td style="white-space:nowrap">    
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Det_Cantidad" 
                                        runat="server" 
                                        style="text-align:right"
                                        CssClass="TEXTO_EDICION_KCG"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CantidadRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Det_Cantidad") %>'>
                                    </asp:TextBox> 
                                    <AjaxControlToolkit:MaskedEditExtender 
                                        ID="fCantidad" 
                                        runat="server"
                                        TargetControlID="Com_Prestamo_Egr_Det_Cantidad"
                                        Mask="9,999,999,999,999.9999"
                                        MessageValidatorTip="false"
                                        OnFocusCssClass="MaskedEditFocus"
                                        OnInvalidCssClass="MaskedEditError"
                                        MaskType="Number"
                                        InputDirection="RightToLeft"
                                        AcceptNegative="None"
                                        DisplayMoney="None"
                                        ErrorTooltipEnabled="false"
                                        ClearMaskOnLostFocus="True" />      
                                    <AjaxControlToolkit:MaskedEditValidator 
                                        ID="MaskedEditValidator1" 
                                        runat="server"
                                        ControlExtender="fCantidad"
                                        ControlToValidate="Com_Prestamo_Egr_Det_Cantidad"
                                        IsValidEmpty="False"
                                        EmptyValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        InvalidValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        MinimumValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        MaximumValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        MinimumValue="0.0000"
                                        MaximumValue="9999999999999.9999" 
                                        Display="Dynamic"
                                        EmptyValueBlurredText='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>'
                                        InvalidValueBlurredMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>'
                                        MaximumValueBlurredMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>' 
                                        MinimumValueBlurredText='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>'
                                        ValidationGroup="I" />                                        
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender5"
                                        TargetControlID="MaskedEditValidator1"/>                                   
                                    <asp:Label
                                        id="lblunidad" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Bod_Unidad_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>                              
                                    <asp:TextBox 
                                        ID="Bod_Unidad_Nombre" 
                                        runat="server" 
                                        CssClass="TEXTO_EDICION_KCG"
                                        Width="222px"
                                        ToolTip='<%# GetLocalResourceObject("Bod_Unidad_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Unidad_Nombre") %>'>
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator4"
                                        runat="server" 
                                        ControlToValidate="Bod_Unidad_Nombre"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender4"
                                        TargetControlID="RequiredFieldValidator4"/> 
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx5"
                                        ID="AutoCompleteExtender5" 
                                        TargetControlID="Bod_Unidad_Nombre"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetUnidad"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedUnidad"
                                        UseContextKey="true"                                                                                 
                                        ContextKey="0">
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx5');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" 
                                                        EndValueScript="$find('AutoCompleteEx5')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx5')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>  
                                </td>
                            </tr>                            
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lbldescripcion" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("DescripcionRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>  
                                </td>
                                <td>                              
                                    <asp:TextBox 
                                        ID="Descripcion" 
                                        runat="server" 
                                        TextMode="MultiLine"
                                        Width="433px"
                                        Height="50px"
                                        CssClass="TEXTO_EDICION_KCG" 
                                        ToolTip='<%# GetLocalResourceObject("DescripcionRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Descripcion") %>'>
                                    </asp:TextBox>
                                </td>
                            </tr>
                            <tr align="left">
                                <td colspan="2">
                                    <asp:Button 
                                        ID="UpdateButton" 
                                        runat="server"
                                        ValidationGroup="I" 
                                        CausesValidation="True" 
                                        CommandName="Update"
                                        AccessKey='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Tec_ActualizarRecursoKCG.AccesKey").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_UpdateRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_UpdateRecursoKCG.ToolTip").ToString() %>'>
                                     </asp:Button>
                                     <asp:Button 
                                        ID="UpdateCancelButton" 
                                        runat="server"
                                        CausesValidation="False" 
                                        CommandName="Cancel"
                                        AccessKey='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Tec_CancelarRecursoKCG.AccesKey").ToString() %>' 
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_CancelRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_CancelRecursoKCG.ToolTip").ToString() %>'>
                                     </asp:Button>
                                  <uc2:wucMensajeActualizar ID="WucMensajeActualizar1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <%--Id's--%>
                    
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Prestamo_Egr_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Prestamo_Egr_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Prestamo_Egr_Det_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Prestamo_Egr_Det_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Bod_Unidad_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Bod_Unidad_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Bod_Orden_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Bod_Orden_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Par_Razon_Social_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Par_Razon_Social_Id") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Bod_Bodega_Id" 
                        runat="server"
                        style="display:none" 
                        Text='<%# Bind("Bod_Bodega_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Articulo_Id" 
                        runat="server"
                        style="display:none" 
                        Text='<%# Bind("Com_Articulo_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Id") %>'>
                    </asp:TextBox>
                    
                    <%--CAMPOS NO VISIBLES--%>
                    
                    <asp:TextBox 
                        ID="Cantidad" 
                        runat="server" 
                        Visible="false" 
                        Text='<%# Bind("Cantidad") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Codigo" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Codigo") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Fecha" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Fecha") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Bod_Unidad_Codigo" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Bod_Unidad_Codigo") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Estado_Nombre" 
                        runat="server"
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Estado_Nombre") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Estado_Nombre" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Estado_Nombre") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Codigo" 
                        runat="server"
                        Visible="false" 
                        Text='<%# Bind("Codigo") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Codigo_int" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Codigo_int") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Nombre" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Nombre") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Estado" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Estado") %>'>
                    </asp:TextBox>               
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:Panel
                        id="Panel1"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_DEVOLUCION_PRESTAMORecursoKCG">
                        <table>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lblbodegas"
                                        runat="server"                                        
                                        Text='<%# GetLocalResourceObject("Bod_Bodega_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:label> 
                                </td>
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="Bod_Bodega_Codigo" 
                                        runat="server"
                                        ReadOnly="true"
                                        TabIndex="-1"  
                                        ToolTip='<%# GetLocalResourceObject("Bod_Bodega_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Bodega_Codigo") %>'>
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Bod_Bodega_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="337px"
                                        ToolTip='<%# GetLocalResourceObject("Bod_Bodega_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Bodega_Nombre") %>'>
                                    </asp:TextBox>    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lblentidad"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Par_Razon_Social_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:label>
                                </td>                                 
                                <td>
                                    <asp:TextBox 
                                        ID="Par_Razon_Social_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="495px"
                                        ToolTip='<%# GetLocalResourceObject("Par_Razon_Social_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Par_Razon_Social_Nombre") %>'>
                                    </asp:TextBox>
                                </td>    
                            </tr>
                        </table>
                    </asp:Panel> 
                    <asp:Panel
                        id="Panel2"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_PRESTAMORecursoKCG">
                        <table>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lbldonacioncod"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Prestamo_Egr_CodigoRecursoKCG.Text").ToString() %>'>
                                    </asp:label>
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Codigo" 
                                        runat="server" 
                                        CssClass="TEXTO_EDICION_KCG"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Codigo") %>'>
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator2"
                                        runat="server" 
                                        ControlToValidate="Com_Prestamo_Egr_Codigo"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender2"
                                        TargetControlID="RequiredFieldValidator2"/>
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx1"
                                        ID="AutoCompleteExtender1" 
                                        TargetControlID="Com_Prestamo_Egr_Codigo"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetCodigo"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedCodigo">                                        
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx1');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx1')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx1')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Tipo_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Tipo_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Tipo_Nombre") %>'>
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Numero" 
                                        runat="server" 
                                        CssClass="TEXTO_EDICION_KCG"
                                        Width="196px"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_NumeroRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Numero") %>'>
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator3"
                                        runat="server" 
                                        ControlToValidate="Com_Prestamo_Egr_Numero"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender3"
                                        TargetControlID="RequiredFieldValidator3"/>
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx2"
                                        ID="AutoCompleteExtender2" 
                                        TargetControlID="Com_Prestamo_Egr_Numero"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetNumero"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedNumero">                                                                                 
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx2');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx2')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx2')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>    
                                </td>
                            </tr>                            
                        </table>
                    </asp:Panel>
                    <asp:Panel
                        id="Panel3"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DETRecursoKCG">
                        <table>
                            <tr>                                
                                <td>
                                    <asp:label
                                        id="lblbodordencod"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Bod_Orden_CodigoRecursoKCG.Text").ToString() %>'>
                                    </asp:label>    
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Bod_Orden_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Bod_Orden_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Orden_Codigo") %>'>
                                    </asp:TextBox>    
                                </td>
                                <td>
                                    <asp:label
                                        id="Label1"
                                        runat="server"
                                        ForeColor="red"
                                        Text='<%# Bind("Estado_Nombre") %>'>
                                    </asp:label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lblcomarticulo" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Articulo_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>
                                </td>
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="Com_Articulo_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Articulo_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Articulo_Codigo") %>'>
                                    </asp:TextBox>                                                                                                                              
                                    <asp:TextBox 
                                        ID="Com_Articulo_Nombre" 
                                        runat="server" 
                                        Width="278px"
                                        CssClass="TEXTO_EDICION_KCG"
                                        ToolTip='<%# GetLocalResourceObject("Com_Articulo_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Articulo_Nombre") %>'>
                                    </asp:TextBox>                                    
                                    <asp:RequiredFieldValidator 
                                        ID="rqvCom_Articulo_Nombre"
                                        runat="server" 
                                        ControlToValidate="Com_Articulo_Nombre"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="caValidator"
                                        TargetControlID="rqvCom_Articulo_Nombre"/> 
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx3"
                                        ID="AutoCompleteExtender3" 
                                        TargetControlID="Com_Articulo_Nombre"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetArticuloNombre"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedArticulo"
                                        UseContextKey="true"
                                        ContextKey="0">                                                                                 
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx3');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx3')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx3')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>   
                                                                                                                  
                                </td>                                
                            </tr>
                            <tr>
                                <td>
                                </td>                                                                                                                                                                                                                          
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="TextBox1" 
                                        BorderColor="White"
                                        BorderStyle="None"
                                        ReadOnly="true" 
                                        width="153px" 
                                        TabIndex="-1"
                                        runat="server">
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Det_Codigo" 
                                        runat="server"
                                        Width="278px"
                                        CssClass="TEXTO_EDICION_KCG" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Det_Codigo") %>'>
                                    </asp:TextBox> 
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator1"
                                        runat="server" 
                                        ControlToValidate="Com_Prestamo_Egr_Det_Codigo"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ1RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender1"
                                        TargetControlID="RequiredFieldValidator1"/> 
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx4"
                                        ID="AutoCompleteExtender4" 
                                        TargetControlID="Com_Prestamo_Egr_Det_Codigo"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetCodigoDet"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedCodigoDet"
                                        UseContextKey="true"
                                        ContextKey="0">                                                                                 
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx4');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx4')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx4')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lblcantidad" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CantidadRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>                                   
                                </td>
                                <td style="white-space:nowrap">    
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Det_Cantidad" 
                                        runat="server" 
                                        style="text-align:right"
                                        CssClass="TEXTO_EDICION_KCG"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CantidadRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Det_Cantidad") %>'>
                                    </asp:TextBox> 
                                    <AjaxControlToolkit:MaskedEditExtender 
                                        ID="fCantidad" 
                                        runat="server"
                                        TargetControlID="Com_Prestamo_Egr_Det_Cantidad"
                                        Mask="9,999,999,999,999.9999"
                                        MessageValidatorTip="false"
                                        OnFocusCssClass="MaskedEditFocus"
                                        OnInvalidCssClass="MaskedEditError"
                                        MaskType="Number"
                                        InputDirection="RightToLeft"
                                        AcceptNegative="None"
                                        DisplayMoney="None"
                                        ErrorTooltipEnabled="false"
                                        ClearMaskOnLostFocus="True" />      
                                    <AjaxControlToolkit:MaskedEditValidator 
                                        ID="MaskedEditValidator1" 
                                        runat="server"
                                        ControlExtender="fCantidad"
                                        ControlToValidate="Com_Prestamo_Egr_Det_Cantidad"
                                        IsValidEmpty="False"
                                        EmptyValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        InvalidValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        MinimumValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        MaximumValueMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.ErrorMessage").ToString() %>'
                                        MinimumValue="0.0000"
                                        MaximumValue="9999999999999.9999" 
                                        Display="Dynamic"
                                        EmptyValueBlurredText='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>'
                                        InvalidValueBlurredMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>'
                                        MaximumValueBlurredMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>' 
                                        MinimumValueBlurredText='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ29RecursoKCG.Text").ToString() %>'
                                        ValidationGroup="I" />                                        
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender5"
                                        TargetControlID="MaskedEditValidator1"/>                                   
                                    <asp:Label
                                        id="lblunidad" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Bod_Unidad_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>                              
                                    <asp:TextBox 
                                        ID="Bod_Unidad_Nombre" 
                                        runat="server" 
                                        CssClass="TEXTO_EDICION_KCG"
                                        Width="222px"
                                        ToolTip='<%# GetLocalResourceObject("Bod_Unidad_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Unidad_Nombre") %>'>
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator 
                                        ID="RequiredFieldValidator4"
                                        runat="server" 
                                        ControlToValidate="Bod_Unidad_Nombre"
                                        ValidationGroup="I"
                                        ErrorMessage='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.ErrorMessage").ToString() %>'
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ2RecursoKCG.Text").ToString() %>'/> 
                                    <AjaxControlToolkit:ValidatorCalloutExtender 
                                        runat="Server" 
                                        ID="ValidatorCalloutExtender4"
                                        TargetControlID="RequiredFieldValidator4"/> 
                                    <AjaxControlToolkit:AutoCompleteExtender
                                        runat="server" 
                                        BehaviorID="AutoCompleteEx5"
                                        ID="AutoCompleteExtender5" 
                                        TargetControlID="Bod_Unidad_Nombre"
                                        ServicePath="~/COM/COM_DEVOLUCION_PRESTAMO_EGR_DET.aspx" 
                                        ServiceMethod="GetUnidad"
                                        MinimumPrefixLength="0" 
                                        CompletionInterval="500"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                        OnClientItemSelected="ItemSelectedUnidad"
                                        UseContextKey="true"                                                                                 
                                        ContextKey="0">
                                        <Animations>
                                            <OnShow>
                                                <Sequence>
                                                    <%-- Make the completion list transparent and then show it --%>
                                                    <OpacityAction Opacity="0" />
                                                    <HideAction Visible="true" />                                                    
                                                    <%--Cache the original size of the completion list the first time
                                                        the animation is played and then set it to zero --%>
                                                    <ScriptAction Script="
                                                        // Cache the size and setup the initial size
                                                        var behavior = $find('AutoCompleteEx5');
                                                        if (!behavior._height) {
                                                            var target = behavior.get_completionList();
                                                            behavior._height = target.offsetHeight - 2;
                                                            target.style.height = '0px';
                                                        }" />                                                    
                                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                                    <Parallel Duration=".4">
                                                        <FadeIn />
                                                        <Length PropertyKey="height" StartValue="0" 
                                                        EndValueScript="$find('AutoCompleteEx5')._height" />
                                                    </Parallel>
                                                </Sequence>
                                            </OnShow>
                                            <OnHide>
                                                <%-- Collapse down to 0px and fade out --%>
                                                <Parallel Duration=".4">
                                                    <FadeOut />
                                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx5')._height" EndValue="0" />
                                                </Parallel>
                                            </OnHide>
                                        </Animations>
                                    </AjaxControlToolkit:AutoCompleteExtender>  
                                </td>
                            </tr>                            
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lbldescripcion" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("DescripcionRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>  
                                </td>
                                <td>                              
                                    <asp:TextBox 
                                        ID="Descripcion" 
                                        runat="server" 
                                        TextMode="MultiLine"
                                        Width="433px"
                                        Height="50px"
                                        CssClass="TEXTO_EDICION_KCG" 
                                        ToolTip='<%# GetLocalResourceObject("DescripcionRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Descripcion") %>'>
                                    </asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button 
                                        ID="InsertButton" 
                                        runat="server" 
                                        CausesValidation="True" 
                                        CommandName="Insert"
                                        ValidationGroup="I"
                                        AccessKey="I"
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_InsertRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_InsertRecursoKCG.ToolTip").ToString() %>'>
                                    </asp:Button>
                                    <asp:Button 
                                        ID="InsertCancelButton" 
                                        runat="server" 
                                        CausesValidation="False" 
                                        CommandName="Cancel"
                                        AccessKey="C"
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_CancelRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_CancelRecursoKCG.ToolTip").ToString() %>'>
                                    </asp:Button>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <%--Id's--%>
                    
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Prestamo_Egr_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Prestamo_Egr_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Prestamo_Egr_Det_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Prestamo_Egr_Det_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Bod_Unidad_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Bod_Unidad_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Bod_Orden_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Bod_Orden_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Par_Razon_Social_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Par_Razon_Social_Id") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Bod_Bodega_Id" 
                        runat="server"
                        style="display:none" 
                        Text='<%# Bind("Bod_Bodega_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Articulo_Id" 
                        runat="server"
                        style="display:none" 
                        Text='<%# Bind("Com_Articulo_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Id") %>'>
                    </asp:TextBox>
                    
                    <%--CAMPOS NO VISIBLES--%>
                    
                    <asp:TextBox 
                        ID="Cantidad" 
                        runat="server" 
                        Visible="false" 
                        Text='<%# Bind("Cantidad") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Codigo" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Codigo") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Fecha" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Fecha") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Bod_Unidad_Codigo" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Bod_Unidad_Codigo") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Estado_Nombre" 
                        runat="server"
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Estado_Nombre") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Estado_Nombre" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Estado_Nombre") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Codigo" 
                        runat="server"
                        Visible="false" 
                        Text='<%# Bind("Codigo") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Codigo_int" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Codigo_int") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Nombre" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Nombre") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Estado" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Estado") %>'>
                    </asp:TextBox>                    
                </InsertItemTemplate>
                <ItemTemplate>  
                    <asp:Panel
                        id="Panel1"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_DEVOLUCION_PRESTAMORecursoKCG">
                        <table>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lblbodegas"
                                        runat="server"                                        
                                        Text='<%# GetLocalResourceObject("Bod_Bodega_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:label> 
                                </td>
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="Bod_Bodega_Codigo" 
                                        runat="server"
                                        ReadOnly="true"
                                        TabIndex="-1"  
                                        ToolTip='<%# GetLocalResourceObject("Bod_Bodega_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Bodega_Codigo") %>'>
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Bod_Bodega_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="337px"
                                        ToolTip='<%# GetLocalResourceObject("Bod_Bodega_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Bodega_Nombre") %>'>
                                    </asp:TextBox>    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lblentidad"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Par_Razon_Social_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:label>
                                </td>                                 
                                <td>
                                    <asp:TextBox 
                                        ID="Par_Razon_Social_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="495px"
                                        ToolTip='<%# GetLocalResourceObject("Par_Razon_Social_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Par_Razon_Social_Nombre") %>'>
                                    </asp:TextBox>
                                </td>    
                            </tr>
                        </table>
                    </asp:Panel> 
                    <asp:Panel
                        id="Panel2"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_PRESTAMORecursoKCG">
                        <table>
                            <tr>
                                <td>
                                    <asp:label
                                        id="lbldonacioncod"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Prestamo_Egr_CodigoRecursoKCG.Text").ToString() %>'>
                                    </asp:label>
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Codigo") %>'>
                                    </asp:TextBox>                                    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Tipo_Nombre" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Tipo_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Tipo_Nombre") %>'>
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Numero" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1"
                                        Width="196px"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_NumeroRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Numero") %>'>
                                    </asp:TextBox>                                    
                                </td>
                            </tr>                            
                        </table>
                    </asp:Panel>
                    <asp:Panel
                        id="Panel3"
                        runat="server"
                        meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DETRecursoKCG">
                        <table>
                            <tr>                                
                                <td>
                                    <asp:label
                                        id="lblbodordencod"
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Bod_Orden_CodigoRecursoKCG.Text").ToString() %>'>
                                    </asp:label>    
                                </td>
                                <td>
                                    <asp:TextBox 
                                        ID="Bod_Orden_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Bod_Orden_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Orden_Codigo") %>'>
                                    </asp:TextBox>    
                                </td>
                                <td>
                                    <asp:label
                                        id="Label1"
                                        runat="server"
                                        ForeColor="red"
                                        Text='<%# Bind("Estado_Nombre") %>'>
                                    </asp:label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lblcomarticulo" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Articulo_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>
                                </td>
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="Com_Articulo_Codigo" 
                                        runat="server" 
                                        ReadOnly="true"
                                        TabIndex="-1" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Articulo_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Articulo_Codigo") %>'>
                                    </asp:TextBox>                                                                                                                              
                                    <asp:TextBox 
                                        ID="Com_Articulo_Nombre" 
                                        runat="server" 
                                        Width="278px"
                                        TabIndex="-1"
                                        ReadOnly="true"
                                        ToolTip='<%# GetLocalResourceObject("Com_Articulo_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Articulo_Nombre") %>'>
                                    </asp:TextBox>                                                                                                        
                                </td>                                
                            </tr>
                            <tr>
                                <td>
                                </td>                                                                                                                                                                                                                          
                                <td style="white-space:nowrap">
                                    <asp:TextBox 
                                        ID="TextBox1" 
                                        BorderColor="White"
                                        BorderStyle="None"
                                        ReadOnly="true" 
                                        width="153px" 
                                        TabIndex="-1"
                                        runat="server">
                                    </asp:TextBox>
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Det_Codigo" 
                                        runat="server"
                                        Width="278px"
                                        TabIndex="-1"
                                        ReadOnly="true"
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CodigoRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Det_Codigo") %>'>
                                    </asp:TextBox>                                     
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lblcantidad" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CantidadRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>                                   
                                </td>
                                <td style="white-space:nowrap">    
                                    <asp:TextBox 
                                        ID="Com_Prestamo_Egr_Det_Cantidad" 
                                        runat="server" 
                                        style="text-align:right"
                                        TabIndex="-1"
                                        ReadOnly="true" 
                                        ToolTip='<%# GetLocalResourceObject("Com_Prestamo_Egr_Det_CantidadRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Com_Prestamo_Egr_Det_Cantidad") %>'>
                                    </asp:TextBox>                                                                        
                                    <asp:Label
                                        id="lblunidad" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("Bod_Unidad_NombreRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>                              
                                    <asp:TextBox 
                                        ID="Bod_Unidad_Nombre" 
                                        runat="server" 
                                        TabIndex="-1"
                                        ReadOnly="true" 
                                        Width="222px"
                                        ToolTip='<%# GetLocalResourceObject("Bod_Unidad_NombreRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Bod_Unidad_Nombre") %>'>
                                    </asp:TextBox>                                      
                                </td>
                            </tr>                            
                            <tr>
                                <td>
                                    <asp:Label
                                        id="lbldescripcion" 
                                        runat="server"
                                        Text='<%# GetLocalResourceObject("DescripcionRecursoKCG.Text").ToString() %>'>
                                    </asp:Label>  
                                </td>
                                <td>                              
                                    <asp:TextBox 
                                        ID="Descripcion" 
                                        runat="server" 
                                        TextMode="MultiLine"
                                        Width="433px"
                                        Height="50px"
                                        TabIndex="-1"
                                        ReadOnly="true" 
                                        CssClass="TEXTO_LECTURA_KCG" 
                                        ToolTip='<%# GetLocalResourceObject("DescripcionRecursoKCG.ToolTip").ToString() %>'
                                        Text='<%# Bind("Descripcion") %>'>
                                    </asp:TextBox>
                                </td>
                            </tr>
                            <tr align="left">
                                <td colspan="2">
                                    <asp:Button 
                                        ID="EditButton" 
                                        runat="server"
                                        CausesValidation="False" 
                                        CommandName="Edit"
                                        AccessKey='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Tec_EditarRecursoKCG.AccesKey").ToString() %>'  
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_EditRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_EditRecursoKCG.ToolTip").ToString() %>'>
                                   </asp:Button>
                                   <asp:Button 
                                        ID="DeleteButton" 
                                        runat="server" 
                                        CausesValidation="False" 
                                        CommandName="Delete"
                                        AccessKey='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Tec_EliminarRecursoKCG.AccesKey").ToString() %>'  
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_DeleteRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_DeleteRecursoKCG.ToolTip").ToString() %>'>
                                   </asp:Button>
                                   <asp:Button 
                                        ID="NewButton" 
                                        runat="server" 
                                        CausesValidation="False" 
                                        CommandName="New"
                                        AccessKey='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Tec_NuevoRecursoKCG.AccesKey").ToString() %>'  
                                        Text='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_NewRecursoKCG.Text").ToString() %>'
                                        ToolTip='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Btn_NewRecursoKCG.ToolTip").ToString() %>'>
                                   </asp:Button>
                                   <uc1:wucMensajeEliminar ID="WucMensajeEliminar1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <%--Id's--%>
                    
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Prestamo_Egr_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Prestamo_Egr_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Prestamo_Egr_Det_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Com_Prestamo_Egr_Det_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Bod_Unidad_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Bod_Unidad_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Bod_Orden_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Bod_Orden_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Par_Razon_Social_Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Par_Razon_Social_Id") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Bod_Bodega_Id" 
                        runat="server"
                        style="display:none" 
                        Text='<%# Bind("Bod_Bodega_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Articulo_Id" 
                        runat="server"
                        style="display:none" 
                        Text='<%# Bind("Com_Articulo_Id") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Id" 
                        runat="server" 
                        style="display:none"
                        Text='<%# Bind("Id") %>'>
                    </asp:TextBox>
                    
                    <%--CAMPOS NO VISIBLES--%>
                    
                    <asp:TextBox 
                        ID="Cantidad" 
                        runat="server" 
                        Visible="false" 
                        Text='<%# Bind("Cantidad") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Codigo" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Codigo") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Fecha" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Fecha") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Bod_Unidad_Codigo" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Bod_Unidad_Codigo") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Com_Devolucion_Prestamo_Egr_Estado_Nombre" 
                        runat="server"
                        Visible="false"
                        Text='<%# Bind("Com_Devolucion_Prestamo_Egr_Estado_Nombre") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Estado_Nombre" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Estado_Nombre") %>'>
                    </asp:TextBox>                    
                    <asp:TextBox 
                        ID="Codigo" 
                        runat="server"
                        Visible="false" 
                        Text='<%# Bind("Codigo") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Codigo_int" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Codigo_int") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Nombre" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Nombre") %>'>
                    </asp:TextBox>
                    <asp:TextBox 
                        ID="Estado" 
                        runat="server" 
                        Visible="false"
                        Text='<%# Bind("Estado") %>'>
                    </asp:TextBox>                  
                </ItemTemplate>
            </asp:FormView>
            <koala:KNavegacion ID="nav"
                runat="server"
                GridViewID="gvcom_devolucion_prestamo_egr_det"
                FormViewID="FormView1" OnNavegar="nav_Siguiente" />       
            </ContentTemplate>
            <Triggers>
            <asp:AsyncPostBackTrigger 
                ControlID="gvcom_devolucion_prestamo_egr_det" 
                EventName="SelectedIndexChanged" />
        </Triggers>                        
    </asp:UpdatePanel>  
    <asp:ObjectDataSource 
        ID="odsfvcom_devolucion_prestamo_egr_det" 
        runat="server" 
        ConflictDetection="CompareAllValues"
        DeleteMethod="Delete" 
        InsertMethod="Insert" 
        OldValuesParameterFormatString="original{0}"
        SelectMethod="GetById" 
        SortParameterName="sortExpression" 
        TypeName="FEL.COM.BO_Com_Devolucion_Prestamo_Egr_Det"
        UpdateMethod="Update">
        <SelectParameters>
            <asp:SessionParameter Name="s" SessionField="Scope" Type="Object" />
            <asp:Parameter Name="Id" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:UpdatePanel 
        ID="UpdatePanel2" 
        runat="server">
        <ContentTemplate>
            <asp:Button 
                ID="Atras" 
                runat="server"                 
                Visible="False" />
            <asp:Button 
                ID="Seleccionar" 
                runat="server"                 
                Visible="False" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel 
    ID="UpdatePanel3" 
    runat="server">
        <ContentTemplate>
            <table>
            <tr>
                <td>
                    <koala:KFiltro 
                        ID="kftFiltro" 
                        runat="server" 
                        Contenedor="COM_DEVOLUCION_PRESTAMO_EGR_DET" 
                        Objeto="COM_DEVOLUCION_PRESTAMO_EGR_DET" 
                        IndiceScope ="Scope"
                        Orden="1"
                        ObjectDataSourceID="odsgvcom_devolucion_prestamo_egr_det" />
                </td>
                <td>
                    <asp:Button
                        id="BtnDevolucionPrestamo"
                        runat="server"
                        OnClick="BtnDevolucionPrestamo_Click" />  
                </td>
            </tr>
        </table>                            
            <asp:Panel 
                runat="server"
                id="pnlDatosGrid"
                meta:resourcekey="REC_COM_DEVOLUCION_PRESTAMO_EGR_DET_LISTADORecursoKCG">                 
                <koala:KGrid
                ID="gvcom_devolucion_prestamo_egr_det" 
                runat="server" 
                AllowPaging="true"
                AllowSorting="true"
                AutoGenerateColumns="False"
                DataKeyNames="Id,Com_Devolucion_Prestamo_Egr_Id" 
                AccessKey='<%# HttpContext.GetLocalResourceObject("~/ITCG.master", "Tec_GridRecursoKCG.AccesKey").ToString() %>' 
                DataSourceID="odsgvcom_devolucion_prestamo_egr_det">
                <AlternatingRowStyle CssClass="alternatingrowstyle" />
                <HeaderStyle CssClass="headerstyle" />
                <PagerStyle CssClass="pagerstyle" />
                <SelectedRowStyle CssClass="selectedrowstyle" />
                <Columns>
                    <asp:CommandField 
                        ButtonType="Button" 
                        SelectText="..." 
                        ShowSelectButton="True" />
                    <asp:BoundField 
                        DataField="Codigo" 
                        meta:resourcekey="BoundCodigoRecursoKCG" 
                        SortExpression="Codigo" >
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField 
                        DataField="Com_Articulo_Nombre" 
                        meta:resourcekey="BoundCom_Articulo_NombreRecursoKCG"
                        SortExpression="Com_Articulo_Nombre" >
                        <ItemStyle Width="80mm" Wrap="True" />
                    </asp:BoundField>
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Det_Cantidad" 
                        meta:resourcekey="BoundCom_Prestamo_Egr_Det_CantidadRecursoKCG"
                        SortExpression="Com_Prestamo_Egr_Det_Cantidad" 
                        DataFormatString="{0:N4}">
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField 
                        DataField="Bod_Unidad_Nombre" 
                        meta:resourcekey="BoundBod_Unidad_NombreRecursoKCG" 
                        SortExpression="Bod_Unidad_Nombre">
                        <ItemStyle Width="80mm" Wrap="True" />
                    </asp:BoundField>
                    <asp:BoundField 
                        DataField="Bod_Orden_Codigo" 
                        meta:resourcekey="BoundBod_Orden_CodigoRecursoKCG" 
                        SortExpression="Bod_Orden_Codigo">
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField 
                        DataField="Com_Devolucion_Prestamo_Egr_Id" 
                        HeaderText="Com_Devolucion_Prestamo_Egr_Id"
                        SortExpression="Com_Devolucion_Prestamo_Egr_Id" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Id" 
                        HeaderText="Com_Prestamo_Egr_Id"
                        SortExpression="Com_Prestamo_Egr_Id" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Det_Id" 
                        HeaderText="Com_Prestamo_Egr_Det_Id"
                        SortExpression="Com_Prestamo_Egr_Det_Id" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Bod_Unidad_Id" 
                        HeaderText="Bod_Unidad_Id" 
                        SortExpression="Bod_Unidad_Id"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Bod_Orden_Id" 
                        HeaderText="Bod_Orden_Id" 
                        SortExpression="Bod_Orden_Id"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Cantidad" 
                        HeaderText="Cantidad" 
                        SortExpression="Cantidad"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Descripcion" 
                        HeaderText="Descripcion" 
                        SortExpression="Descripcion"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Devolucion_Prestamo_Egr_Codigo" 
                        HeaderText="Com_Devolucion_Prestamo_Egr_Codigo"
                        SortExpression="Com_Devolucion_Prestamo_Egr_Codigo" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Devolucion_Prestamo_Egr_Fecha" 
                        HeaderText="Com_Devolucion_Prestamo_Egr_Fecha"
                        SortExpression="Com_Devolucion_Prestamo_Egr_Fecha" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Par_Razon_Social_Id" 
                        HeaderText="Par_Razon_Social_Id"
                        SortExpression="Par_Razon_Social_Id" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Par_Razon_Social_Nombre" 
                        HeaderText="Par_Razon_Social_Nombre"
                        SortExpression="Par_Razon_Social_Nombre" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Bod_Bodega_Id" 
                        HeaderText="Bod_Bodega_Id" 
                        SortExpression="Bod_Bodega_Id"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Bod_Bodega_Codigo" 
                        HeaderText="Bod_Bodega_Codigo" 
                        SortExpression="Bod_Bodega_Codigo"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Bod_Bodega_Nombre" 
                        HeaderText="Bod_Bodega_Nombre" 
                        SortExpression="Bod_Bodega_Nombre"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Codigo" 
                        HeaderText="Com_Prestamo_Egr_Codigo"
                        SortExpression="Com_Prestamo_Egr_Codigo" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Tipo_Nombre" 
                        HeaderText="Com_Prestamo_Egr_Tipo_Nombre"
                        SortExpression="Com_Prestamo_Egr_Tipo_Nombre" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Numero" 
                        HeaderText="Com_Prestamo_Egr_Numero"
                        SortExpression="Com_Prestamo_Egr_Numero" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Prestamo_Egr_Det_Codigo" 
                        HeaderText="Com_Prestamo_Egr_Det_Codigo"
                        SortExpression="Com_Prestamo_Egr_Det_Codigo" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Articulo_Id" 
                        HeaderText="Com_Articulo_Id" 
                        SortExpression="Com_Articulo_Id"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Articulo_Codigo" 
                        HeaderText="Com_Articulo_Codigo"
                        SortExpression="Com_Articulo_Codigo" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Bod_Unidad_Codigo" 
                        HeaderText="Bod_Unidad_Codigo" 
                        SortExpression="Bod_Unidad_Codigo"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Com_Devolucion_Prestamo_Egr_Estado_Nombre" 
                        HeaderText="Com_Devolucion_Prestamo_Egr_Estado_Nombre"
                        SortExpression="Com_Devolucion_Prestamo_Egr_Estado_Nombre" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Estado_Nombre" 
                        HeaderText="Estado_Nombre" 
                        SortExpression="Estado_Nombre"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Id" 
                        HeaderText="Id" 
                        SortExpression="Id" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Codigo_int" 
                        HeaderText="Codigo_int" 
                        SortExpression="Codigo_int"
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Nombre" 
                        HeaderText="Nombre" 
                        SortExpression="Nombre" 
                        Visible="False" />
                    <asp:BoundField 
                        DataField="Estado" 
                        HeaderText="Estado" 
                        SortExpression="Estado" 
                        Visible="False" />
               </Columns>
                </koala:KGrid>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel> 
    <asp:ObjectDataSource 
        ID="odsgvcom_devolucion_prestamo_egr_det" 
        runat="server" 
        OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetByPrestamo" 
        TypeName="FEL.COM.BO_Com_Devolucion_Prestamo_Egr_Det">
        <SelectParameters>
            <asp:SessionParameter Name="s" SessionField="Scope" Type="Object" />
            <asp:QueryStringParameter Name="Com_Devolucion_Prestamo_Egr_Id" QueryStringField="Com_Devolucion_Prestamo_Egr_Id"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

